package cn.wolfcode.wolf2w.web.controller;

import cn.wolfcode.wolf2w.redis.ITestDestinationRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TRedisController {
    @Autowired
    private ITestDestinationRedisService testDestinationRedisService;

    @RequestMapping("redis01")
    @ResponseBody
    public Object redis01(){
       return testDestinationRedisService.getValue("*");
    }

}
